GtkRange: Check "inverted" property when drawing
authorMarcus Karlsson <mk@acc.umu.se>
Tue, 24 Mar 2015 21:14:27 +0000 (22:14 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Mar 2015 03:19:50 +0000 (23:19 -0400)
commit38f61dd445e633ba83ded1273f0f1b942eed6a64
tree041d65cea815329d95fe9559c5b9ca4496c9f3d5
parent1ed9d33d2497eee1f0cdd9fd107d427338b2ada5
GtkRange: Check "inverted" property when drawing

The direction in which the slider moves can be inverted by setting the
inverted property. But the draw method does not check this, instead it
checks if the direction of the widget is set to be right to left.

Call the should_invert function in order to determine if the direction
of the range should be inverted. It too checks the widget's direction,
but also checks the "inverted" property, and allows the range to be
drawn inverted even if it is vertically oriented.

https://bugzilla.gnome.org/show_bug.cgi?id=746712
gtk/gtkrange.c